package com.example.jeong.yuejian10.Model;





import com.example.jeong.yuejian10.Bean.FeedbackBean;
import com.example.jeong.yuejian10.Service.FeedbackService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

import static com.example.jeong.yuejian10.constant.Constant.BASE_URL;


public class FeedbackModel {
    private Retrofit retrofit;
    public FeedbackModel(){
        retrofit = new Retrofit.Builder()
                .baseUrl(BASE_URL)
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }
    public Call<FeedbackBean> addfeedback(int u_id, String f_title, String f_info){
        FeedbackService feedbackService = retrofit.create(FeedbackService.class);
        return feedbackService.addfeedback(u_id,f_title,f_info);
    }


}
